# ******************************************************************************************
# 文件名：Makefile
# 作者：狼狼    版本：V1.0    创建日期：2021.8.1
# ******************************************************************************************
VERSION = 1.0

CC = gcc

DEST = lprogram_Loice_Master_Demo

OBJS = main.o \
       connect_manager.o \
       loice_master_parser.o \
       data_process_handle.o

LIBS = 

DEFINE += -DPROJECT_PRINTF_ENABLE 
# DEFINE += -DSAVE_STREAM_TO_FILE 

CFLAGS  = -Wall -std=gnu99 -g -I./include $(DEFINE) 
LDFLAGS = -pthread -ldl -lm

all:lprogram

lprogram:$(OBJS)
	@$(CC) $(LDFLAGS) -o $(DEST) $(OBJS) $(LIBS) 

$(OBJS):%.o:%.c
	$(CC) $(CFLAGS) -c -o $@ $<

clean:
	rm -f *.o
	rm -f $(DEST)

clear:
	rm -f *.o
